package com.eva.dao.cms.model;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.eva.framework.mp.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

@Data
@Accessors(chain = true)
@SuperBuilder
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel("栏目管理")
@TableName("`cms_category`")
public class CmsCategory extends BaseModel {

    @TableField(value = "`parent_id`", updateStrategy = FieldStrategy.ALWAYS)
    @ApiModelProperty(value="所属父栏目ID")
    private Integer parentId;

    @TableField(value = "`permission_id`", updateStrategy = FieldStrategy.ALWAYS)
    @ApiModelProperty(value="权限ID")
    private Integer permissionId;

    @TableField("`uid`")
    @ApiModelProperty(value="唯一标识")
    private String uid;

    @TableField("`title`")
    @ApiModelProperty(value="栏目标题")
    private String title;

    @TableField("`type`")
    @ApiModelProperty(value="栏目类型")
    private String type;

    @TableField("`uri`")
    @ApiModelProperty(value="访问地址")
    private String uri;

    @TableField("`icon`")
    @ApiModelProperty(value="图标")
    private String icon;

    @TableField("`sort`")
    @ApiModelProperty(value="排序")
    private Integer sort;

    @TableField("`template_id`")
    @ApiModelProperty(value="模板ID")
    private Integer templateId;

    @TableField("`template_parameters`")
    @ApiModelProperty(value="模板参数")
    private String templateParameters;

    @TableField("`hidden`")
    @ApiModelProperty(value="是否隐藏")
    private Boolean hidden;

    @TableField("`config`")
    @ApiModelProperty(value="栏目配置")
    private String config;

}
